package com.hnevc.nbastar;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        findViewById(R.id.btn_target).setOnClickListener(this);
        findViewById(R.id.btn_hj).setOnClickListener(this);
        findViewById(R.id.btn_hr).setOnClickListener(this);
        findViewById(R.id.btn_ys).setOnClickListener(this);
        findViewById(R.id.btn_qs).setOnClickListener(this);
        findViewById(R.id.btn_leit).setOnClickListener(this);
        findViewById(R.id.btn_hx).setOnClickListener(this);
        findViewById(R.id.btn_hf).setOnClickListener(this);
        findViewById(R.id.btn_ty).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_target:
                Intent intent = new Intent(MainActivity.this, NBAStarListActivity.class);
                startActivity(intent);
                break;
            case R.id.btn_hj:
                Intent intent1 = new Intent(MainActivity.this, NBAStarListActivity.class);
                startActivity(intent1);
                break;
            case R.id.btn_hr:
                Intent intent2 = new Intent(MainActivity.this, NBAStarListActivity.class);
                startActivity(intent2);
                break;
            case R.id.btn_ys:
                Intent intent3 = new Intent(MainActivity.this, NBAStarListActivity.class);
                startActivity(intent3);
                break;
            case R.id.btn_qs:
                Intent intent4 = new Intent(MainActivity.this, NBAStarListActivity.class);
                startActivity(intent4);
                break;
            case R.id.btn_leit:
                Intent intent5 = new Intent(MainActivity.this, NBAStarListActivity.class);
                startActivity(intent5);
                break;
            case R.id.btn_hx:
                Intent intent6 = new Intent(MainActivity.this, NBAStarListActivity.class);
                startActivity(intent6);
                break;
            case R.id.btn_hf:
                Intent intent7 = new Intent(MainActivity.this, NBAStarListActivity.class);
                startActivity(intent7);
                break;
            case R.id.btn_ty:
                Intent intent8 = new Intent(MainActivity.this, NBAStarListActivity.class);
                startActivity(intent8);
                break;
        }
    }
}


